#!/usr/bin/env python3
# -*- coding: utf-8 -*-
b = bytes.fromhex

s_name =  "NGEE 158C0H~15944H	007 Goldeneye (USA)"
sample = b("""27BDFFE0 AFBF0014 AFA40020 0C005798 AFA0001C 3C0E8006 91CE7CE0 11C0000C
              00000000 0C0052F2 00002025 3C058006 24A57CA0 0C0057B4 24040001 AFA2001C
              8FA40020 00002825 0C003774 24060001 3C058006 24A57CA0 0C0057B4 00002025
              3C018006 AFA2001C 0C0057A9 A0207CE0 8FBF0014 8FA2001C 27BD0020 03E00008
              00000000""")

s_mask = b("""FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFF0000 FFFF0000 FFFFFFFF
              FFFFFFFF 00000000 FFFFFFFF FFFF0000 FFFF0000 00000000 FFFFFFFF FFFFFFFF
              FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFF0000 FFFF0000 00000000 FFFFFFFF
              FFFF0000 FFFFFFFF 00000000 FFFF0000 FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
              FFFFFFFF""")

symbol = (('+', 'V0 = errors sending SI status commands (0) using queue A0, creating if necessary', 0x6FFFF400),
          )

# Only two functions check the "last used SI cmd", patch the loads instead of writes.
p_cmds = ((0x1C, 0x20, 4),	# Kinda a hack, copies a NOP
          )

